<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:c="http://java.sun.com/jstl/core" >
	<f:view>
		<h:form>

			<rich:panel	style="width:800px;border-style:solid;margin:30px;padding:px;">
				<f:facet name="header">
					<h:outputText value="New Leatest Feed Updates" />
				</f:facet>				
				<h:panelGrid columns="0" >
					<a:poll id="divNewspoll" interval="500" enabled="#{leatesNewsPoll.enable}"  reRender="divNews" />
					
					<a:outputPanel id="divNews">
						
					<rich:dataList var="newsVar" value="#{leatesNewsPoll.newsList}" id="newsVar"	rows="10">
						<h:outputText value="#{newsVar.header} " />
						<br />						
						<h:outputText value="#{newsVar.body} " />
					
					</rich:dataList>
				</a:outputPanel>
					
				</h:panelGrid>
				



			</rich:panel>
		</h:form>
	</f:view>
</ui:composition>
